home *** CD-ROM | disk | FTP | other *** search
/ Champak 119 / (Vol 119) Nov 09 2010.iso / Games / orbitrax.swf / scripts / DefineSprite_1013 / frame_1 / PlaceObject2_409_7 / CLIPACTIONRECORD onClipEvent(load).as
Text File  |  2010-11-09  |  626b  |  23 lines

  1. onClipEvent(load){
  2.    _name = gameMain.getName();
  3.    gameMain.addObjIfHit(this,"hitZone","hitArray");
  4.    gameMain.hitArray.push(this);
  5.    hitFct = function()
  6.    {
  7.       for(var _loc1_ in gameMain.hitArray)
  8.       {
  9.          gameMain.hitArray[_loc1_].hitAction = gameMain.hitArray[_loc1_].hitFct;
  10.       }
  11.       if(gameMain.swapObj.getDepth() < gameMain.elementMap.getDepth())
  12.       {
  13.          gameMain.elementMap.swapDepths(gameMain.swapObj);
  14.       }
  15.       if(gameMain.tcount == 1)
  16.       {
  17.          gameMain.tcount = gameMain.tcount + 1;
  18.       }
  19.       hitAction = undefined;
  20.    };
  21.    hitAction = hitFct;
  22. }
  23.